package com.myslef.teaching_platfrom.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.myslef.teaching_platfrom.domain.course.Course;
import com.myslef.teaching_platfrom.mapper.CourseMapper;
import com.myslef.teaching_platfrom.service.CourseService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CourseServiceImpl extends ServiceImpl<CourseMapper, Course> implements CourseService {


    public List<Course> getAll(){

        return baseMapper.selectList(new LambdaQueryWrapper<>());
    }

}
